<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="title">
			{{ title }}
		</view>
		<view class="uview-wrapper">
			<u-button type="default" class="btn">默认按钮</u-button>
			<u-button type="primary" class="btn">主要按钮</u-button>
			<u-button type="warning" class="btn">警告按钮</u-button>
		</view>
		<u-tabbar :list="tabbar"></u-tabbar>
	</view>
</template>

<script>
	import tabbar from '@/common/mockData/tabbar.js'
	export default {
		data() {
			return {
				title: '这是教师首页',
				tabbar: tabbar[uni.getStorageSync('role')]
			}
		},
		onLoad() {
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.btn {
		display: block;
		margin: 10px 0;
	}

	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
